﻿<%@ Page Language="C#" MasterPageFile="~/NetFTP.master" AutoEventWireup="true" CodeFile="Ftp.aspx.cs" Inherits="Ftp" Theme="Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 100%" cellpadding="0px" cellspacing="0px">
        <tr>
            <td class="MENUG"></td>
            <td class="MENU" align="left">
                <table style="height:25px;">
                    <tr>
                        <td style="width:24px;"><asp:ImageButton ID="addfile" runat="server" AlternateText="Ajouter un fichier" 
                                ImageUrl="App_Themes/Default/Images/boutons/Document_Add.gif" Width="20px" 
                                Height="20" onclick="addfile_Click" /></td>
                        <td style="width:24px;"><asp:ImageButton ID="addfolder" runat="server" AlternateText="Ajouter un dossier" 
                                ImageUrl="App_Themes/Default/Images/boutons/Folder_Add.gif" Width="20px" 
                                Height="20" onclick="addfolder_Click" /></td>
                        <td style="width:20px;">
                            &nbsp;</td>
                        <td style="width:24px;"><asp:ImageButton ID="upload" runat="server" AlternateText="Envoyer un fichier" 
                                ImageUrl="App_Themes/Default/Images/boutons/Upload.gif" Width="20px" 
                                Height="20" onclick="upload_Click" /></td>
                        <td style="width:24px;"><asp:ImageButton ID="download" runat="server" AlternateText="Télécharger un fichier" 
                                ImageUrl="App_Themes/Default/Images/boutons/Download.gif" Width="20px" 
                                Height="20" onclick="download_Click" /></td>
                        <td style="width:20px;">
                            &nbsp;</td>
                        <td style="width:24px;"><asp:ImageButton ID="copier" runat="server" AlternateText="Copier" 
                                ImageUrl="App_Themes/Default/Images/boutons/Copy.gif" Width="20px" 
                                Height="20" onclick="copier_Click" /></td>
                        <td style="width:24px;">
                            <asp:ImageButton ID="move" runat="server" AlternateText="Coller" 
                                ImageUrl="App_Themes/Default/Images/boutons/Move.gif" Width="20px" Height="20" 
                                onclick="move_Click" /></td>
                        <td style="width:24px;"><asp:ImageButton ID="delete" runat="server" AlternateText="Supprimer" 
                                ImageUrl="App_Themes/Default/Images/boutons/Delete.gif" Width="20px" 
                                Height="20" onclick="delete_Click" /></td>
                        <td style="width:24px;"><asp:ImageButton ID="rename" runat="server" AlternateText="Renommer" 
                                ImageUrl="App_Themes/Default/Images/boutons/Rename.gif" Width="20px" 
                                Height="20" onclick="rename_Click" /></td>
                        <td style="width:20px;">
                            &nbsp;</td>
                        <td style="width:24px;"><asp:ImageButton ID="edit" runat="server" AlternateText="Editer un fichier" 
                                ImageUrl="App_Themes/Default/Images/boutons/Document_Edit.gif" Width="20px" 
                                Height="20" onclick="edit_Click" /></td>
                        <td style="width:24px;">
                            <asp:ImageButton ID="permission" runat="server" AlternateText="Changer les permissions" 
                                ImageUrl="App_Themes/Default/Images/boutons/Change_Permissions.gif" 
                                Width="20px" Height="20" onclick="permission_Click" Visible="False" /></td>
                        <td style="width:100%;">
                            &nbsp;</td>
                        <td style="width:24px;">
                            <asp:ImageButton ID="mdp" runat="server" AlternateText="Changer son mot de passe" 
                                ImageUrl="App_Themes/Default/Images/mdp.png" Width="20px" 
                                Height="20" onclick="mdp_Click" /></td>
                        <td style="width:24px;">
                            <asp:ImageButton ID="compte" runat="server" AlternateText="Liste des comptes FTP" 
                                ImageUrl="App_Themes/Default/Images/comptes.png" 
                                Width="20px" Height="20" onclick="compte_Click" /></td>
                        <td style="width:24px;">
                            <asp:ImageButton ID="deconnection" runat="server" AlternateText="Déconnexion" 
                                ImageUrl="App_Themes/Default/Images/deconnexion.png" 
                                Width="20px" Height="20" onclick="deconnection_Click" /></td>
                    </tr>
                </table>
            </td>
            <td class="MENUD"></td>
        </tr>
    </table><br />
    <table style="width:100%;">
        <tr>
            <td style="width:250px;vertical-align:top;text-align:left;">
                <asp:TreeView ID="tvArbo" runat="server" Width="250px" 
                    onselectednodechanged="tvArbo_SelectedNodeChanged" 
                    ImageSet="Simple">
                    <ParentNodeStyle Font-Bold="False" />
                    <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                    <SelectedNodeStyle Font-Underline="True" 
                        HorizontalPadding="0px" VerticalPadding="0px" ForeColor="#5555DD" />
                    <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" 
                        HorizontalPadding="0px" NodeSpacing="0px" VerticalPadding="0px" />
                </asp:TreeView>
            </td>
            <td align="left" style="vertical-align:top;">
                <table>
                    <tr>
                        <td style="width:24px;"><asp:ImageButton ID="select" runat="server" AlternateText="Tout sélectionner"
                                ImageUrl="App_Themes/Default/Images/boutons/Select_All.gif" Width="20px" 
                                Height="20" onclick="select_Click" /></td>
                        <td style="width:24px;"><asp:ImageButton ID="refresh" runat="server" AlternateText="Raffraichir" 
                                ImageUrl="App_Themes/Default/Images/boutons/Reload.gif" Width="20px" 
                                Height="20" onclick="refresh_Click" /></td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvFichier" runat="server" Width="100%" 
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="Selected" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Image ID="imgFolder" runat="server" Visible="false" Width="16" Height="16" ImageUrl="~/App_Themes/Default/Images/extension/folder.png" />
                                <asp:Image ID="imgFile" runat="server" Visible="false" Width="16" Height="16" ImageUrl="~/App_Themes/Default/Images/extension/file.png" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="FileName" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="FileName" runat="server" Text='<%# Bind("FullName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Fichier">
                            <ItemTemplate>
                                <asp:Label ID="Fichier" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Type">
                            <ItemTemplate>
                                <asp:Label ID="Type" runat="server" Text='<%# Bind("Extension") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Taille">
                            <ItemTemplate>
                                <asp:Label ID="Taille" runat="server" Text='<%# Bind("Length") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Dossier" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="Directory" runat="server" Text='<%# Bind("Directory") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Modifié" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="LastAccessTime" runat="server" Text='<%# Bind("LastAccessTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Droit">
                            <ItemTemplate>
                                <asp:Label ID="Droit" runat="server" Text='<%# Bind("Droit") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

